<template>
  <div id="app">
    <h1>Vuex 购物车示例</h1>
    <div class="container">
      <ProductList />
      <Cart />
    </div>
  </div>
</template>

<script>
import ProductList from './components/ProductList'
import Cart from './components/Cart'

export default {
  components: {
    ProductList,
    Cart
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
h1 {
  text-align: center;
  color: #2c3e50;
}
</style>